home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / ada / gnat1792.zip / gnat179b / t-adainc / s-timtyp.ads < prev    next >
Text File  |  1994-05-19  |  2KB  |  44 lines

  1. ------------------------------------------------------------------------------
  2. --                                                                          --
  3. --                GNU ADA RUNTIME LIBRARY (GNARL) COMPONENTS                --
  4. --                                                                          --
  5. --                    S Y S T E M _ T I M E _ T Y P E S                     --
  6. --                                                                          --
  7. --                                 S p e c                                  --
  8. --                                                                          --
  9. --                            $Revision: 1.1 $                              --
  10. --                    (corresponds to FSU revision 1.6)                     --
  11. --                                                                          --
  12. --           Copyright (c) 1992,1993,1994 FSU, All Rights Reserved          --
  13. --                                                                          --
  14. -- GNAT is free software;  you can  redistribute it  and/or modify it under --
  15. -- terms of the  GNU General Public License as published  by the Free Soft- --
  16. -- ware  Foundation;  either version 2,  or (at your option) any later ver- --
  17. -- sion.  GNAT is distributed in the hope that it will be useful, but WITH- --
  18. -- OUT ANY WARRANTY;  without even the  implied warranty of MERCHANTABILITY --
  19. -- or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License --
  20. -- for  more details.  You should have  received  a copy of the GNU General --
  21. -- Public License  distributed with GNAT;  see file COPYING.  If not, write --
  22. -- to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. --
  23. --                                                                          --
  24. ------------------------------------------------------------------------------
  25.  
  26.  
  27. with Calendar;
  28.  
  29. package System.Time_Types is
  30.  
  31.    type Time_Types is (Calendar_Time_Type, Real_Time_Type);
  32.  
  33.    type Time_Type (T : Time_Types) is record
  34.       case T is
  35.          when Calendar_Time_Type =>
  36.             CT : Calendar.Time;
  37.  
  38.          when Real_Time_Type =>
  39.             RT : integer;    --  to be defined later for GNAT ???
  40.       end case;
  41.    end record;
  42.  
  43. end System.Time_Types;
  44.